﻿using System.Collections.Generic;

// ReSharper disable InconsistentNaming

namespace Protocol.Data
{
    #region Abstract

    public abstract class bytes
    {
    }

    public abstract class storage__FileType
    {
    }

    public abstract class MessageAction
    {
    }

    public abstract class Update
    {
    }

    public abstract class ChatFull
    {
    }

    public abstract class InputFileLocation
    {
    }

    public abstract class InputAppEvent
    {
    }

    public abstract class Bool
    {
    }

    public abstract class User
    {
    }

    public abstract class Contact
    {
    }

    public abstract class InputUser
    {
    }

    public abstract class InputContact
    {
    }

    public abstract class InputMedia
    {
    }

    public abstract class InputVideo
    {
    }

    public abstract class InputPhoto
    {
    }

    public abstract class InputChatPhoto
    {
    }

    public abstract class Dialog
    {
    }

    public abstract class Chat
    {
    }

    public abstract class Message
    {
    }

    public abstract class MessageMedia
    {
    }

    public abstract class FileLocation
    {
    }

    public abstract class InputGeoChat
    {
    }

    public abstract class ChatParticipant
    {
    }

    public abstract class ChatParticipants
    {
    }

    public abstract class Peer
    {
    }

    public abstract class Error
    {
    }

    public abstract class InputPeer
    {
    }

    public abstract class PeerNotifySettings
    {
    }

    public abstract class Photo
    {
    }

    public abstract class PhotoSize
    {
    }

    public abstract class ChatPhoto
    {
    }

    public abstract class Video
    {
    }

    public abstract class MediaMessage
    {
    }

    public abstract class UserStatus
    {
    }

    public abstract class UserProfilePhoto
    {
    }

    public abstract class InputPhotoCrop
    {
    }

    public abstract class GeoPoint
    {
    }

    public abstract class InputFile
    {
    }

    public abstract class InputGeoPoint
    {
    }

    public abstract class auth__CheckedPhone
    {
    }

    public abstract class auth__SentCode
    {
    }

    public abstract class auth__Authorization
    {
    }

    public abstract class auth__ExportedAuthorization
    {
    }

    public abstract class InputNotifyPeer
    {
    }

    public abstract class InputPeerNotifyEvents
    {
    }

    public abstract class InputPeerNotifySettings
    {
    }

    public abstract class PeerNotifyEvents
    {
    }

    public abstract class WallPaper
    {
    }

    public abstract class UserFull
    {
    }

    public abstract class ImportedContact
    {
    }

    public abstract class ContactBlocked
    {
    }

    public abstract class ContactFound
    {
    }

    public abstract class ContactSuggested
    {
    }

    public abstract class ContactStatus
    {
    }

    public abstract class ChatLocated
    {
    }

    public abstract class contacts__ForeignLink
    {
    }

    public abstract class contacts__MyLink
    {
    }

    public abstract class contacts__Link
    {
    }

    public abstract class contacts__Contacts
    {
    }

    public abstract class contacts__ImportedContacts
    {
    }

    public abstract class contacts__Blocked
    {
    }

    public abstract class contacts__Found
    {
    }

    public abstract class contacts__Suggested
    {
    }

    public abstract class messages__Dialogs
    {
    }

    public abstract class messages__Messages
    {
    }

    public abstract class messages__Message
    {
    }

    public abstract class messages__StatedMessages
    {
    }

    public abstract class messages__StatedMessage
    {
    }

    public abstract class messages__SentMessage
    {
    }

    public abstract class messages__Chat
    {
    }

    public abstract class messages__Chats
    {
    }

    public abstract class messages__ChatFull
    {
    }

    public abstract class messages__AffectedHistory
    {
    }

    public abstract class MessagesFilter
    {
    }

    public abstract class updates__State
    {
    }

    public abstract class updates__Difference
    {
    }

    public abstract class EncryptedMessage
    {
    }

    public abstract class Updates
    {
    }

    public abstract class photos__Photos
    {
    }

    public abstract class photos__Photo
    {
    }

    public abstract class upload__File
    {
    }

    public abstract class DcOption
    {
    }

    public abstract class Config
    {
    }

    public abstract class NearestDc
    {
    }

    public abstract class help__AppUpdate
    {
    }

    public abstract class help__InviteText
    {
    }

    public abstract class GeoChatMessage
    {
    }

    public abstract class geochats__StatedMessage
    {
    }

    public abstract class geochats__Located
    {
    }

    public abstract class geochats__Messages
    {
    }

    public abstract class EncryptedChat
    {
    }

    public abstract class InputEncryptedChat
    {
    }

    public abstract class EncryptedFile
    {
    }

    public abstract class InputEncryptedFile
    {
    }

    public abstract class DecryptedMessage
    {
    }

    public abstract class DecryptedMessageLayer
    {
    }

    public abstract class DecryptedMessageMedia
    {
    }

    public abstract class DecryptedMessageAction
    {
    }

    public abstract class messages__DhConfig
    {
    }

    public abstract class messages__SentEncryptedMessage
    {
    }

    public abstract class InputAudio
    {
    }

    public abstract class InputDocument
    {
    }

    public abstract class Document
    {
    }

    public abstract class Audio
    {
    }

    public abstract class X
    {
    }

    public abstract class NotX
    {
    }

    #endregion

    [Id("9ec20908")]
    public class new_session_created
    {
        public long first_msg_id { get; set; }
        public long unique_id { get; set; }
        public long server_salt { get; set; }
    }

    [Id("73f1f8dc")]
    public class msg_container
    {
        public Vector<object> messages { get; set; } 
    }

    [Id("a7eff811")]
    public class bad_msg_notification
    {
        public long msg_id { get; set; }
        public int bad_msg_seqno { get; set; }
        public int error_code { get; set; }
    }

    [Id("edab447b")]
    public class bad_server_salt
    {
        public long msg_id { get; set; }
        public int bad_msg_seqno { get; set; }
        public int error_code { get; set; }
        public long new_server_salt { get; set; }
    }

    [Id(1615239032)]
    public class pqRequest
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
    }

    [Id(85337187)]
    public class pqResponce
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        public BigInteger PQ { get; set; }
        public Vector<long> Fingrprints { get; set; }
    }

    [Id(-686627650)]
    public class dhRequest
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        public BigInteger P { get; set; }
        public BigInteger Q { get; set; }
        public long FingerPrint { get; set; }
        public byte[] EncriptedData { get; set; }
    }

    [Id(-2083955988)]
    public class pqInner
    {
        public BigInteger Pq { get; set; }
        public BigInteger P { get; set; }
        public BigInteger Q { get; set; }
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        [Length(32)]
        public byte[] NewNonce { get; set; }
    }

    [Id("d0e8075c")]
    public class ResDhOk
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        public byte[] EncriptedAnswer { get; set; }
    }

    [Id("79cb045d")]
    public class ResDhFail
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        [Length(16)]
        public byte[] NewNonceHash { get; set; }
    }

    [Id("b5890dba")]
    public class InnerServerDh
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        public uint G { get; set; }
        public BigInteger DhPrime { get; set; }
        public BigInteger Ga { get; set; }
        public uint ServerTime { get; set; }
    }

    [Id("6643b654")]
    public class ClientDhInner
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        public long RetryId { get; set; }
        public BigInteger Gb { get; set; }
    }

    [Id("f5045f1f")]
    public class ReqSetDhClientParams
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        public byte[] EncriptedData { get; set; }
    }

    [Id("3bcbf734")]
    public class ResDhGenOk
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        [Length(16)]
        public byte[] NewNonceHash1 { get; set; }
    }

    [Id("46dc1fb9")]
    public class ResDhGenRetry
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        [Length(16)]
        public byte[] NewNonceHash2 { get; set; }
    }

    [Id("a69dae02")]
    public class ResDhGenFail
    {
        [Length(16)]
        public byte[] Nonce { get; set; }
        [Length(16)]
        public byte[] ServerNonce { get; set; }
        [Length(16)]
        public byte[] NewNonceHash3 { get; set; }
    }

    [Id("d2dab7e9")]
    public class DeveloperInfo
    {
        public string Name { get; set; }
        public string Mail { get; set; }
        public string PhoneNumber { get; set; }
        public int Age { get; set; }
        public string City { get; set; }
    }

    [Id("62d6b459")]
    public class msgs_ack
    {
        public Vector<long> msg_ids { get; set; } 
    }

    [Id("9a5f6e95")]
    public class DeveloperInfo1
    {
        public int VkId { get; set; }
        public string Name { get; set; }
        public string PhoneNumber { get; set; }
        public int Age { get; set; }
        public string City { get; set; }
    }

    [Id(-1132882121)]
    public class boolFalse : Bool
    {

    }

    [Id(-1720552011)]
    public class boolTrue : Bool
    {

    }

    [Id(481674261)]
    public class Vector<T> : List<T>
    {

    }

    [Id(-994444869)]
    public class error : Error
    {
        public int code { get; set; }
        public string text { get; set; }
    }

    [Id(1450380236)]
    public class Null
    {

    }

    [Id(2134579434)]
    public class inputPeerEmpty : InputPeer
    {

    }

    [Id(2107670217)]
    public class inputPeerSelf : InputPeer
    {

    }

    [Id(270785512)]
    public class inputPeerContact : InputPeer
    {
        public int user_id { get; set; }
    }

    [Id(-1690012891)]
    public class inputPeerForeign : InputPeer
    {
        public int user_id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(396093539)]
    public class inputPeerChat : InputPeer
    {
        public int chat_id { get; set; }
    }

    [Id(-1182234929)]
    public class inputUserEmpty : InputUser
    {

    }

    [Id(-138301121)]
    public class inputUserSelf : InputUser
    {

    }

    [Id(-2031530139)]
    public class inputUserContact : InputUser
    {
        public int user_id { get; set; }
    }

    [Id(1700689151)]
    public class inputUserForeign : InputUser
    {
        public int user_id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(-208488460)]
    public class inputPhoneContact : InputContact
    {
        public long client_id { get; set; }
        public string phone { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
    }

    [Id(-181407105)]
    public class inputFile : InputFile
    {
        public long id { get; set; }
        public int parts { get; set; }
        public string name { get; set; }
        public string md5_checksum { get; set; }
    }

    [Id(-1771768449)]
    public class inputMediaEmpty : InputMedia
    {

    }

    [Id(767900285)]
    public class inputMediaUploadedPhoto : InputMedia
    {
        public InputFile file { get; set; }
    }

    [Id(-1893027092)]
    public class inputMediaPhoto : InputMedia
    {
        public InputPhoto id { get; set; }
    }

    [Id(-104578748)]
    public class inputMediaGeoPoint : InputMedia
    {
        public InputGeoPoint geo_point { get; set; }
    }

    [Id(-1494984313)]
    public class inputMediaContact : InputMedia
    {
        public string phone_number { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
    }

    [Id(1212668202)]
    public class inputMediaUploadedVideo : InputMedia
    {
        public InputFile file { get; set; }
        public int duration { get; set; }
        public int w { get; set; }
        public int h { get; set; }
    }

    [Id(-433544891)]
    public class inputMediaUploadedThumbVideo : InputMedia
    {
        public InputFile file { get; set; }
        public InputFile thumb { get; set; }
        public int duration { get; set; }
        public int w { get; set; }
        public int h { get; set; }
    }

    [Id(2130852582)]
    public class inputMediaVideo : InputMedia
    {
        public InputVideo id { get; set; }
    }

    [Id(480546647)]
    public class inputChatPhotoEmpty : InputChatPhoto
    {

    }

    [Id(-1809496270)]
    public class inputChatUploadedPhoto : InputChatPhoto
    {
        public InputFile file { get; set; }
        public InputPhotoCrop crop { get; set; }
    }

    [Id(-1293828344)]
    public class inputChatPhoto : InputChatPhoto
    {
        public InputPhoto id { get; set; }
        public InputPhotoCrop crop { get; set; }
    }

    [Id(-457104426)]
    public class inputGeoPointEmpty : InputGeoPoint
    {

    }

    [Id(-206066487)]
    public class inputGeoPoint : InputGeoPoint
    {
        public double latitude { get; set; }
        public double longitude { get; set; }
    }

    [Id(483901197)]
    public class inputPhotoEmpty : InputPhoto
    {

    }

    [Id(-74070332)]
    public class inputPhoto : InputPhoto
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(1426648181)]
    public class inputVideoEmpty : InputVideo
    {

    }

    [Id(-296249774)]
    public class inputVideo : InputVideo
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(342061462)]
    public class inputFileLocation : InputFileLocation
    {
        public long volume_id { get; set; }
        public int local_id { get; set; }
        public long secret { get; set; }
    }

    [Id(1023632620)]
    public class inputVideoFileLocation : InputFileLocation
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(-1377390588)]
    public class inputPhotoCropAuto : InputPhotoCrop
    {

    }

    [Id(-644787419)]
    public class inputPhotoCrop : InputPhotoCrop
    {
        public double crop_left { get; set; }
        public double crop_top { get; set; }
        public double crop_width { get; set; }
    }

    [Id(1996904104)]
    public class inputAppEvent : InputAppEvent
    {
        public double time { get; set; }
        public string type { get; set; }
        public long peer { get; set; }
        public string data { get; set; }
    }

    [Id(-1649296275)]
    public class peerUser : Peer
    {
        public int user_id { get; set; }
    }

    [Id(-1160714821)]
    public class peerChat : Peer
    {
        public int chat_id { get; set; }
    }

    [Id(-1432995067)]
    public class storage__fileUnknown : storage__FileType
    {

    }

    [Id(8322574)]
    public class storage__fileJpeg : storage__FileType
    {

    }

    [Id(-891180321)]
    public class storage__fileGif : storage__FileType
    {

    }

    [Id(172975040)]
    public class storage__filePng : storage__FileType
    {

    }

    [Id(-1373745011)]
    public class storage__filePdf : storage__FileType
    {

    }

    [Id(1384777335)]
    public class storage__fileMp3 : storage__FileType
    {

    }

    [Id(1258941372)]
    public class storage__fileMov : storage__FileType
    {

    }

    [Id(1086091090)]
    public class storage__filePartial : storage__FileType
    {

    }

    [Id(-1278304028)]
    public class storage__fileMp4 : storage__FileType
    {

    }

    [Id(276907596)]
    public class storage__fileWebp : storage__FileType
    {

    }

    [Id(2086234950)]
    public class fileLocationUnavailable : FileLocation
    {
        public long volume_id { get; set; }
        public int local_id { get; set; }
        public long secret { get; set; }
    }

    [Id(1406570614)]
    public class fileLocation : FileLocation
    {
        public int dc_id { get; set; }
        public long volume_id { get; set; }
        public int local_id { get; set; }
        public long secret { get; set; }
    }

    [Id(537022650)]
    public class userEmpty : User
    {
        public int id { get; set; }
    }

    [Id(1912944108)]
    public class userSelf : User
    {
        public int id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public string phone { get; set; }
        public UserProfilePhoto photo { get; set; }
        public UserStatus status { get; set; }
        public Bool inactive { get; set; }
    }

    [Id(-218397927)]
    public class userContact : User
    {
        public int id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public long access_hash { get; set; }
        public string phone { get; set; }
        public UserProfilePhoto photo { get; set; }
        public UserStatus status { get; set; }
    }

    [Id(585682608)]
    public class userRequest : User
    {
        public int id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public long access_hash { get; set; }
        public string phone { get; set; }
        public UserProfilePhoto photo { get; set; }
        public UserStatus status { get; set; }
    }

    [Id(1377093789)]
    public class userForeign : User
    {
        public int id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public long access_hash { get; set; }
        public UserProfilePhoto photo { get; set; }
        public UserStatus status { get; set; }
    }

    [Id(-1298475060)]
    public class userDeleted : User
    {
        public int id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
    }

    [Id(1326562017)]
    public class userProfilePhotoEmpty : UserProfilePhoto
    {

    }

    [Id(-715532088)]
    public class userProfilePhoto : UserProfilePhoto
    {
        public long photo_id { get; set; }
        public FileLocation photo_small { get; set; }
        public FileLocation photo_big { get; set; }
    }

    [Id(164646985)]
    public class userStatusEmpty : UserStatus
    {

    }

    [Id(-306628279)]
    public class userStatusOnline : UserStatus
    {
        public int expires { get; set; }
    }

    [Id(9203775)]
    public class userStatusOffline : UserStatus
    {
        public int was_online { get; set; }
    }

    [Id(-1683826688)]
    public class chatEmpty : Chat
    {
        public int id { get; set; }
    }

    [Id(1855757255)]
    public class chat : Chat
    {
        public int id { get; set; }
        public string title { get; set; }
        public ChatPhoto photo { get; set; }
        public int participants_count { get; set; }
        public int date { get; set; }
        public Bool left { get; set; }
        public int version { get; set; }
    }

    [Id(-83047359)]
    public class chatForbidden : Chat
    {
        public int id { get; set; }
        public string title { get; set; }
        public int date { get; set; }
    }

    [Id(1661886910)]
    public class chatFull : ChatFull
    {
        public int id { get; set; }
        public ChatParticipants participants { get; set; }
        public Photo chat_photo { get; set; }
        public PeerNotifySettings notify_settings { get; set; }
    }

    [Id(-925415106)]
    public class chatParticipant : ChatParticipant
    {
        public int user_id { get; set; }
        public int inviter_id { get; set; }
        public int date { get; set; }
    }

    [Id(265468810)]
    public class chatParticipantsForbidden : ChatParticipants
    {
        public int chat_id { get; set; }
    }

    [Id(2017571861)]
    public class chatParticipants : ChatParticipants
    {
        public int chat_id { get; set; }
        public int admin_id { get; set; }
        public Vector<ChatParticipant> participants { get; set; }
        public int version { get; set; }
    }

    [Id(935395612)]
    public class chatPhotoEmpty : ChatPhoto
    {

    }

    [Id(1632839530)]
    public class chatPhoto : ChatPhoto
    {
        public FileLocation photo_small { get; set; }
        public FileLocation photo_big { get; set; }
    }

    [Id(-2082087340)]
    public class messageEmpty : Message
    {
        public int id { get; set; }
    }

    [Id(585853626)]
    public class message : Message
    {
        public int id { get; set; }
        public int from_id { get; set; }
        public Peer to_id { get; set; }
        public Bool Out { get; set; }
        public Bool unread { get; set; }
        public int date { get; set; }
        public string Message { get; set; }
        public MessageMedia media { get; set; }
    }

    [Id(99903492)]
    public class messageForwarded : Message
    {
        public int id { get; set; }
        public int fwd_from_id { get; set; }
        public int fwd_date { get; set; }
        public int from_id { get; set; }
        public Peer to_id { get; set; }
        public Bool Out { get; set; }
        public Bool unread { get; set; }
        public int date { get; set; }
        public string message { get; set; }
        public MessageMedia media { get; set; }
    }

    [Id(-1618124613)]
    public class messageService : Message
    {
        public int id { get; set; }
        public int from_id { get; set; }
        public Peer to_id { get; set; }
        public Bool Out { get; set; }
        public Bool unread { get; set; }
        public int date { get; set; }
        public MessageAction action { get; set; }
    }

    [Id(1038967584)]
    public class messageMediaEmpty : MessageMedia
    {

    }

    [Id(-926655958)]
    public class messageMediaPhoto : MessageMedia
    {
        public Photo photo { get; set; }
    }

    [Id(-1563278704)]
    public class messageMediaVideo : MessageMedia
    {
        public Video video { get; set; }
    }

    [Id(1457575028)]
    public class messageMediaGeo : MessageMedia
    {
        public GeoPoint geo { get; set; }
    }

    [Id(1585262393)]
    public class messageMediaContact : MessageMedia
    {
        public string phone_number { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public int user_id { get; set; }
    }

    [Id(694364726)]
    public class messageMediaUnsupported : MessageMedia
    {
        public bytes bytes { get; set; }
    }

    [Id(-1230047312)]
    public class messageActionEmpty : MessageAction
    {

    }

    [Id(-1503425638)]
    public class messageActionChatCreate : MessageAction
    {
        public string title { get; set; }
        public Vector<int> users { get; set; }
    }

    [Id(-1247687078)]
    public class messageActionChatEditTitle : MessageAction
    {
        public string title { get; set; }
    }

    [Id(2144015272)]
    public class messageActionChatEditPhoto : MessageAction
    {
        public Photo photo { get; set; }
    }

    [Id(-1780220945)]
    public class messageActionChatDeletePhoto : MessageAction
    {

    }

    [Id(1581055051)]
    public class messageActionChatAddUser : MessageAction
    {
        public int user_id { get; set; }
    }

    [Id(-1297179892)]
    public class messageActionChatDeleteUser : MessageAction
    {
        public int user_id { get; set; }
    }

    [Id(558533855)]
    public class dialog : Dialog
    {
        public Peer peer { get; set; }
        public int top_message { get; set; }
        public int unread_count { get; set; }
    }

    [Id(590459437)]
    public class photoEmpty : Photo
    {
        public long id { get; set; }
    }

    [Id(582313809)]
    public class photo : Photo
    {
        public long id { get; set; }
        public long access_hash { get; set; }
        public int user_id { get; set; }
        public int date { get; set; }
        public string caption { get; set; }
        public GeoPoint geo { get; set; }
        public Vector<PhotoSize> sizes { get; set; }
    }

    [Id(236446268)]
    public class photoSizeEmpty : PhotoSize
    {
        public string type { get; set; }
    }

    [Id(2009052699)]
    public class photoSize : PhotoSize
    {
        public string type { get; set; }
        public FileLocation location { get; set; }
        public int w { get; set; }
        public int h { get; set; }
        public int size { get; set; }
    }

    [Id(-374917894)]
    public class photoCachedSize : PhotoSize
    {
        public string type { get; set; }
        public FileLocation location { get; set; }
        public int w { get; set; }
        public int h { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(-1056548696)]
    public class videoEmpty : Video
    {
        public long id { get; set; }
    }

    [Id(1510253727)]
    public class video : Video
    {
        public long id { get; set; }
        public long access_hash { get; set; }
        public int user_id { get; set; }
        public int date { get; set; }
        public string caption { get; set; }
        public int duration { get; set; }
        public int size { get; set; }
        public PhotoSize thumb { get; set; }
        public int dc_id { get; set; }
        public int w { get; set; }
        public int h { get; set; }
    }

    [Id(286776671)]
    public class geoPointEmpty : GeoPoint
    {

    }

    [Id(541710092)]
    public class geoPoint : GeoPoint
    {
        public double longitude { get; set; }
        public double latitude { get; set; }
    }

    [Id(-486486981)]
    public class auth__checkedPhone : auth__CheckedPhone
    {
        public Bool phone_registered { get; set; }
        public Bool phone_invited { get; set; }
    }

    [Id(571849917)]
    public class auth__sentCode : auth__SentCode
    {
        public Bool phone_registered { get; set; }
        public string phone_code_hash { get; set; }
    }

    [Id(-155815004)]
    public class auth__authorization : auth__Authorization
    {
        public int expires { get; set; }
        public User user { get; set; }
    }

    [Id(-543777747)]
    public class auth__exportedAuthorization : auth__ExportedAuthorization
    {
        public int id { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(-1195615476)]
    public class inputNotifyPeer : InputNotifyPeer
    {
        public InputPeer peer { get; set; }
    }

    [Id(423314455)]
    public class inputNotifyUsers : InputNotifyPeer
    {

    }

    [Id(1251338318)]
    public class inputNotifyChats : InputNotifyPeer
    {

    }

    [Id(-1540769658)]
    public class inputNotifyAll : InputNotifyPeer
    {

    }

    [Id(-265263912)]
    public class inputPeerNotifyEventsEmpty : InputPeerNotifyEvents
    {

    }

    [Id(-395694988)]
    public class inputPeerNotifyEventsAll : InputPeerNotifyEvents
    {

    }

    [Id(1185074840)]
    public class inputPeerNotifySettings : InputPeerNotifySettings
    {
        public int mute_until { get; set; }
        public string sound { get; set; }
        public Bool show_previews { get; set; }
        public int events_mask { get; set; }
    }

    [Id(-1378534221)]
    public class peerNotifyEventsEmpty : PeerNotifyEvents
    {

    }

    [Id(1830677896)]
    public class peerNotifyEventsAll : PeerNotifyEvents
    {

    }

    [Id(1889961234)]
    public class peerNotifySettingsEmpty : PeerNotifySettings
    {

    }

    [Id(-1923214866)]
    public class peerNotifySettings : PeerNotifySettings
    {
        public int mute_until { get; set; }
        public string sound { get; set; }
        public Bool show_previews { get; set; }
        public int events_mask { get; set; }
    }

    [Id(-860866985)]
    public class wallPaper : WallPaper
    {
        public int id { get; set; }
        public string title { get; set; }
        public Vector<PhotoSize> sizes { get; set; }
        public int color { get; set; }
    }

    [Id(1997575642)]
    public class userFull : UserFull
    {
        public User user { get; set; }
        public contacts__Link link { get; set; }
        public Photo profile_photo { get; set; }
        public PeerNotifySettings notify_settings { get; set; }
        public Bool blocked { get; set; }
        public string real_first_name { get; set; }
        public string real_last_name { get; set; }
    }

    [Id(-116274796)]
    public class contact : Contact
    {
        public int user_id { get; set; }
        public Bool mutual { get; set; }
    }

    [Id(-805141448)]
    public class importedContact : ImportedContact
    {
        public int user_id { get; set; }
        public long client_id { get; set; }
    }

    [Id(1444661369)]
    public class contactBlocked : ContactBlocked
    {
        public int user_id { get; set; }
        public int date { get; set; }
    }

    [Id(-360210539)]
    public class contactFound : ContactFound
    {
        public int user_id { get; set; }
    }

    [Id(1038193057)]
    public class contactSuggested : ContactSuggested
    {
        public int user_id { get; set; }
        public int mutual_contacts { get; set; }
    }

    [Id(-1434994573)]
    public class contactStatus : ContactStatus
    {
        public int user_id { get; set; }
        public int expires { get; set; }
    }

    [Id(909233996)]
    public class chatLocated : ChatLocated
    {
        public int chat_id { get; set; }
        public int distance { get; set; }
    }

    [Id(322183672)]
    public class contacts__foreignLinkUnknown : contacts__ForeignLink
    {

    }

    [Id(-1484775609)]
    public class contacts__foreignLinkRequested : contacts__ForeignLink
    {
        public Bool has_phone { get; set; }
    }

    [Id(468356321)]
    public class contacts__foreignLinkMutual : contacts__ForeignLink
    {

    }

    [Id(-768992160)]
    public class contacts__myLinkEmpty : contacts__MyLink
    {

    }

    [Id(1818882030)]
    public class contacts__myLinkRequested : contacts__MyLink
    {
        public Bool contact { get; set; }
    }

    [Id(-1035932711)]
    public class contacts__myLinkContact : contacts__MyLink
    {

    }

    [Id(-322001931)]
    public class contacts__link : contacts__Link
    {
        public contacts__MyLink my_link { get; set; }
        public contacts__ForeignLink foreign_link { get; set; }
        public User user { get; set; }
    }

    [Id(1871416498)]
    public class contacts__contacts : contacts__Contacts
    {
        public Vector<Contact> contacts { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-1219778094)]
    public class contacts__contactsNotModified : contacts__Contacts
    {

    }

    [Id(-775091636)]
    public class contacts__importedContacts : contacts__ImportedContacts
    {
        public Vector<ImportedContact> imported { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(471043349)]
    public class contacts__blocked : contacts__Blocked
    {
        public Vector<ContactBlocked> blocked { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-1878523231)]
    public class contacts__blockedSlice : contacts__Blocked
    {
        public int count { get; set; }
        public Vector<ContactBlocked> blocked { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(90570766)]
    public class contacts__found : contacts__Found
    {
        public Vector<ContactFound> results { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(1447681221)]
    public class contacts__suggested : contacts__Suggested
    {
        public Vector<ContactSuggested> results { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(364538944)]
    public class messages__dialogs : messages__Dialogs
    {
        public Vector<Dialog> dialogs { get; set; }
        public Vector<Message> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(1910543603)]
    public class messages__dialogsSlice : messages__Dialogs
    {
        public int count { get; set; }
        public Vector<Dialog> dialogs { get; set; }
        public Vector<Message> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-1938715001)]
    public class messages__messages : messages__Messages
    {
        public Vector<Message> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(189033187)]
    public class messages__messagesSlice : messages__Messages
    {
        public int count { get; set; }
        public Vector<Message> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(1062078024)]
    public class messages__messageEmpty : messages__Message
    {

    }

    [Id(-7289833)]
    public class messages__message : messages__Message
    {
        public Message message { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-1768654661)]
    public class messages__statedMessages : messages__StatedMessages
    {
        public Vector<Message> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public int pts { get; set; }
        public int seq { get; set; }
    }

    [Id(-797251802)]
    public class messages__statedMessage : messages__StatedMessage
    {
        public Message message { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public int pts { get; set; }
        public int seq { get; set; }
    }

    [Id(-772484260)]
    public class messages__sentMessage : messages__SentMessage
    {
        public int id { get; set; }
        public int date { get; set; }
        public int pts { get; set; }
        public int seq { get; set; }
    }

    [Id(1089011754)]
    public class messages__chat : messages__Chat
    {
        public Chat chat { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-2125411368)]
    public class messages__chats : messages__Chats
    {
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-438840932)]
    public class messages__chatFull : messages__ChatFull
    {
        public ChatFull full_chat { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-1210173710)]
    public class messages__affectedHistory : messages__AffectedHistory
    {
        public int pts { get; set; }
        public int seq { get; set; }
        public int offset { get; set; }
    }

    [Id(1474492012)]
    public class inputMessagesFilterEmpty : MessagesFilter
    {

    }

    [Id(-1777752804)]
    public class inputMessagesFilterPhotos : MessagesFilter
    {

    }

    [Id(-1614803355)]
    public class inputMessagesFilterVideo : MessagesFilter
    {

    }

    [Id(1458172132)]
    public class inputMessagesFilterPhotoVideo : MessagesFilter
    {

    }

    [Id(-1629621880)]
    public class inputMessagesFilterDocument : MessagesFilter
    {

    }

    [Id(20626867)]
    public class updateNewMessage : Update
    {
        public Message message { get; set; }
        public int pts { get; set; }
    }

    [Id(1318109142)]
    public class updateMessageID : Update
    {
        public int id { get; set; }
        public long random_id { get; set; }
    }

    [Id(-966484431)]
    public class updateReadMessages : Update
    {
        public Vector<int> messages { get; set; }
        public int pts { get; set; }
    }

    [Id(-1456734682)]
    public class updateDeleteMessages : Update
    {
        public Vector<int> messages { get; set; }
        public int pts { get; set; }
    }

    [Id(-782376883)]
    public class updateRestoreMessages : Update
    {
        public Vector<int> messages { get; set; }
        public int pts { get; set; }
    }

    [Id(1806337288)]
    public class updateUserTyping : Update
    {
        public int user_id { get; set; }
    }

    [Id(1011273702)]
    public class updateChatUserTyping : Update
    {
        public int chat_id { get; set; }
        public int user_id { get; set; }
    }

    [Id(125178264)]
    public class updateChatParticipants : Update
    {
        public ChatParticipants participants { get; set; }
    }

    [Id(469489699)]
    public class updateUserStatus : Update
    {
        public int user_id { get; set; }
        public UserStatus status { get; set; }
    }

    [Id(-635250259)]
    public class updateUserName : Update
    {
        public int user_id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
    }

    [Id(-1791935732)]
    public class updateUserPhoto : Update
    {
        public int user_id { get; set; }
        public int date { get; set; }
        public UserProfilePhoto photo { get; set; }
        public Bool previous { get; set; }
    }

    [Id(628472761)]
    public class updateContactRegistered : Update
    {
        public int user_id { get; set; }
        public int date { get; set; }
    }

    [Id(1369737882)]
    public class updateContactLink : Update
    {
        public int user_id { get; set; }
        public contacts__MyLink my_link { get; set; }
        public contacts__ForeignLink foreign_link { get; set; }
    }

    [Id(1869154659)]
    public class updateActivation : Update
    {
        public int user_id { get; set; }
    }

    [Id(-1895411046)]
    public class updateNewAuthorization : Update
    {
        public long auth_key_id { get; set; }
        public int date { get; set; }
        public string device { get; set; }
        public string location { get; set; }
    }

    [Id(-1519637954)]
    public class updates__state : updates__State
    {
        public int pts { get; set; }
        public int qts { get; set; }
        public int date { get; set; }
        public int seq { get; set; }
        public int unread_count { get; set; }
    }

    [Id(1567990072)]
    public class updates__differenceEmpty : updates__Difference
    {
        public int date { get; set; }
        public int seq { get; set; }
    }

    [Id(16030880)]
    public class updates__difference : updates__Difference
    {
        public Vector<Message> new_messages { get; set; }
        public Vector<EncryptedMessage> new_encrypted_messages { get; set; }
        public Vector<Update> other_updates { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public updates__State state { get; set; }
    }

    [Id(-1459938943)]
    public class updates__differenceSlice : updates__Difference
    {
        public Vector<Message> new_messages { get; set; }
        public Vector<EncryptedMessage> new_encrypted_messages { get; set; }
        public Vector<Update> other_updates { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public updates__State intermediate_state { get; set; }
    }

    [Id(-484987010)]
    public class updatesToolongitude : Updates
    {

    }

    [Id(-738961532)]
    public class updateShortMessage : Updates
    {
        public int id { get; set; }
        public int from_id { get; set; }
        public string message { get; set; }
        public int pts { get; set; }
        public int date { get; set; }
        public int seq { get; set; }
    }

    [Id(724548942)]
    public class updateShortChatMessage : Updates
    {
        public int id { get; set; }
        public int from_id { get; set; }
        public int chat_id { get; set; }
        public string message { get; set; }
        public int pts { get; set; }
        public int date { get; set; }
        public int seq { get; set; }
    }

    [Id(2027216577)]
    public class updateShort : Updates
    {
        public Update update { get; set; }
        public int date { get; set; }
    }

    [Id(1918567619)]
    public class updatesCombined : Updates
    {
        public Vector<Update> updates { get; set; }
        public Vector<User> users { get; set; }
        public Vector<Chat> chats { get; set; }
        public int date { get; set; }
        public int seq_start { get; set; }
        public int seq { get; set; }
    }

    [Id(1957577280)]
    public class updates : Updates
    {
        public Vector<Update> Updates { get; set; }
        public Vector<User> users { get; set; }
        public Vector<Chat> chats { get; set; }
        public int date { get; set; }
        public int seq { get; set; }
    }

    [Id(-1916114267)]
    public class photos__photos : photos__Photos
    {
        public Vector<Photo> photos { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(352657236)]
    public class photos__photosSlice : photos__Photos
    {
        public int count { get; set; }
        public Vector<Photo> photos { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(539045032)]
    public class photos__photo : photos__Photo
    {
        public Photo photo { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(157948117)]
    public class upload__file : upload__File
    {
        public storage__FileType type { get; set; }
        public int mtime { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(784507964)]
    public class dcOption : DcOption
    {
        public int id { get; set; }
        public string hostname { get; set; }
        public string ip_address { get; set; }
        public int port { get; set; }
    }

    [Id(590174469)]
    public class config : Config
    {
        public int date { get; set; }
        public Bool test_mode { get; set; }
        public int this_dc { get; set; }
        public Vector<DcOption> dc_options { get; set; }
        public int chat_size_max { get; set; }
    }

    [Id(-1910892683)]
    public class nearestDc : NearestDc
    {
        public string country { get; set; }
        public int this_dc { get; set; }
        public int nearest_dc { get; set; }
    }

    [Id(-1987579119)]
    public class help__appUpdate : help__AppUpdate
    {
        public int id { get; set; }
        public Bool critical { get; set; }
        public string url { get; set; }
        public string text { get; set; }
    }

    [Id(-1000708810)]
    public class help__noAppUpdate : help__AppUpdate
    {

    }

    [Id(415997816)]
    public class help__inviteText : help__InviteText
    {
        public string message { get; set; }
    }

    [Id(1047852486)]
    public class messages__statedMessagesLinks : messages__StatedMessages
    {
        public Vector<Message> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public Vector<contacts__Link> links { get; set; }
        public int pts { get; set; }
        public int seq { get; set; }
    }

    [Id(-1448138623)]
    public class messages__statedMessageLink : messages__StatedMessage
    {
        public Message message { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public Vector<contacts__Link> links { get; set; }
        public int pts { get; set; }
        public int seq { get; set; }
    }

    [Id(-371504577)]
    public class messages__sentMessageLink : messages__SentMessage
    {
        public int id { get; set; }
        public int date { get; set; }
        public int pts { get; set; }
        public int seq { get; set; }
        public Vector<contacts__Link> links { get; set; }
    }

    [Id(1960072954)]
    public class inputGeoChat : InputGeoChat
    {
        public int chat_id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(1301143240)]
    public class inputNotifyGeoChatPeer : InputNotifyPeer
    {
        public InputGeoChat peer { get; set; }
    }

    [Id(1978329690)]
    public class geoChat : Chat
    {
        public int id { get; set; }
        public long access_hash { get; set; }
        public string title { get; set; }
        public string address { get; set; }
        public string venue { get; set; }
        public GeoPoint geo { get; set; }
        public ChatPhoto photo { get; set; }
        public int participants_count { get; set; }
        public int date { get; set; }
        public Bool checked_in { get; set; }
        public int version { get; set; }
    }

    [Id(1613830811)]
    public class geoChatMessageEmpty : GeoChatMessage
    {
        public int chat_id { get; set; }
        public int id { get; set; }
    }

    [Id(1158019297)]
    public class geoChatMessage : GeoChatMessage
    {
        public int chat_id { get; set; }
        public int id { get; set; }
        public int from_id { get; set; }
        public int date { get; set; }
        public string message { get; set; }
        public MessageMedia media { get; set; }
    }

    [Id(-749755826)]
    public class geoChatMessageService : GeoChatMessage
    {
        public int chat_id { get; set; }
        public int id { get; set; }
        public int from_id { get; set; }
        public int date { get; set; }
        public MessageAction action { get; set; }
    }

    [Id(397498251)]
    public class geochats__statedMessage : geochats__StatedMessage
    {
        public GeoChatMessage message { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
        public int seq { get; set; }
    }

    [Id(1224651367)]
    public class geochats__located : geochats__Located
    {
        public Vector<ChatLocated> results { get; set; }
        public Vector<GeoChatMessage> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-783127119)]
    public class geochats__messages : geochats__Messages
    {
        public Vector<GeoChatMessage> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(-1135057944)]
    public class geochats__messagesSlice : geochats__Messages
    {
        public int count { get; set; }
        public Vector<GeoChatMessage> messages { get; set; }
        public Vector<Chat> chats { get; set; }
        public Vector<User> users { get; set; }
    }

    [Id(1862504124)]
    public class messageActionGeoChatCreate : MessageAction
    {
        public string title { get; set; }
        public string address { get; set; }
    }

    [Id(209540062)]
    public class messageActionGeoChatCheckin : MessageAction
    {

    }

    [Id(1516823543)]
    public class updateNewGeoChatMessage : Update
    {
        public GeoChatMessage message { get; set; }
    }

    [Id(1662091044)]
    public class wallPaperSolid : WallPaper
    {
        public int id { get; set; }
        public string title { get; set; }
        public int bg_color { get; set; }
        public int color { get; set; }
    }

    [Id(314359194)]
    public class updateNewEncryptedMessage : Update
    {
        public EncryptedMessage message { get; set; }
        public int qts { get; set; }
    }

    [Id(386986326)]
    public class updateEncryptedChatTyping : Update
    {
        public int chat_id { get; set; }
    }

    [Id(-1264392051)]
    public class updateEncryption : Update
    {
        public EncryptedChat chat { get; set; }
        public int date { get; set; }
    }

    [Id(956179895)]
    public class updateEncryptedMessagesRead : Update
    {
        public int chat_id { get; set; }
        public int max_date { get; set; }
        public int date { get; set; }
    }

    [Id(-1417756512)]
    public class encryptedChatEmpty : EncryptedChat
    {
        public int id { get; set; }
    }

    [Id(1006044124)]
    public class encryptedChatWaiting : EncryptedChat
    {
        public int id { get; set; }
        public long access_hash { get; set; }
        public int date { get; set; }
        public int admin_id { get; set; }
        public int participant_id { get; set; }
    }

    [Id(-931638658)]
    public class encryptedChatRequested : EncryptedChat
    {
        public int id { get; set; }
        public long access_hash { get; set; }
        public int date { get; set; }
        public int admin_id { get; set; }
        public int participant_id { get; set; }
        public bytes g_a { get; set; }
    }

    [Id(-94974410)]
    public class encryptedChat : EncryptedChat
    {
        public int id { get; set; }
        public long access_hash { get; set; }
        public int date { get; set; }
        public int admin_id { get; set; }
        public int participant_id { get; set; }
        public bytes g_a_or_b { get; set; }
        public long key_fingerprint { get; set; }
    }

    [Id(332848423)]
    public class encryptedChatDiscarded : EncryptedChat
    {
        public int id { get; set; }
    }

    [Id(-247351839)]
    public class inputEncryptedChat : InputEncryptedChat
    {
        public int chat_id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(-1038136962)]
    public class encryptedFileEmpty : EncryptedFile
    {

    }

    [Id(1248893260)]
    public class encryptedFile : EncryptedFile
    {
        public long id { get; set; }
        public long access_hash { get; set; }
        public int size { get; set; }
        public int dc_id { get; set; }
        public int key_fingerprint { get; set; }
    }

    [Id(406307684)]
    public class inputEncryptedFileEmpty : InputEncryptedFile
    {

    }

    [Id(1690108678)]
    public class inputEncryptedFileUploaded : InputEncryptedFile
    {
        public long id { get; set; }
        public int parts { get; set; }
        public string md5_checksum { get; set; }
        public int key_fingerprint { get; set; }
    }

    [Id(1511503333)]
    public class inputEncryptedFile : InputEncryptedFile
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(-182231723)]
    public class inputEncryptedFileLocation : InputFileLocation
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(-317144808)]
    public class encryptedMessage : EncryptedMessage
    {
        public long random_id { get; set; }
        public int chat_id { get; set; }
        public int date { get; set; }
        public bytes bytes { get; set; }
        public EncryptedFile file { get; set; }
    }

    [Id(594758406)]
    public class encryptedMessageService : EncryptedMessage
    {
        public long random_id { get; set; }
        public int chat_id { get; set; }
        public int date { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(-1717290801)]
    public class decryptedMessageLayer : DecryptedMessageLayer
    {
        public int layer { get; set; }
        public DecryptedMessage message { get; set; }
    }

    [Id(528568095)]
    public class decryptedMessage : DecryptedMessage
    {
        public long random_id { get; set; }
        public bytes random_bytes { get; set; }
        public string message { get; set; }
        public DecryptedMessageMedia media { get; set; }
    }

    [Id(-1438109059)]
    public class decryptedMessageService : DecryptedMessage
    {
        public long random_id { get; set; }
        public bytes random_bytes { get; set; }
        public DecryptedMessageAction action { get; set; }
    }

    [Id(144661578)]
    public class decryptedMessageMediaEmpty : DecryptedMessageMedia
    {

    }

    [Id(846826124)]
    public class decryptedMessageMediaPhoto : DecryptedMessageMedia
    {
        public bytes thumb { get; set; }
        public int thumb_w { get; set; }
        public int thumb_h { get; set; }
        public int w { get; set; }
        public int h { get; set; }
        public int size { get; set; }
        public bytes key { get; set; }
        public bytes iv { get; set; }
    }

    [Id(1290694387)]
    public class decryptedMessageMediaVideo : DecryptedMessageMedia
    {
        public bytes thumb { get; set; }
        public int thumb_w { get; set; }
        public int thumb_h { get; set; }
        public int duration { get; set; }
        public int w { get; set; }
        public int h { get; set; }
        public int size { get; set; }
        public bytes key { get; set; }
        public bytes iv { get; set; }
    }

    [Id(893913689)]
    public class decryptedMessageMediaGeoPoint : DecryptedMessageMedia
    {
        public double latitude { get; set; }
        public double longitude { get; set; }
    }

    [Id(1485441687)]
    public class decryptedMessageMediaContact : DecryptedMessageMedia
    {
        public string phone_number { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public int user_id { get; set; }
    }

    [Id(-1586283796)]
    public class decryptedMessageActionSetMessageTTL : DecryptedMessageAction
    {
        public int ttl_seconds { get; set; }
    }

    [Id(-1058912715)]
    public class messages__dhConfigNotModified : messages__DhConfig
    {
        public bytes random { get; set; }
    }

    [Id(740433629)]
    public class messages__dhConfig : messages__DhConfig
    {
        public int g { get; set; }
        public bytes p { get; set; }
        public int version { get; set; }
        public bytes random { get; set; }
    }

    [Id(1443858741)]
    public class messages__sentEncryptedMessage : messages__SentEncryptedMessage
    {
        public int date { get; set; }
    }

    [Id(-1802240206)]
    public class messages__sentEncryptedFile : messages__SentEncryptedMessage
    {
        public int date { get; set; }
        public EncryptedFile file { get; set; }
    }

    [Id(-95482955)]
    public class inputFileBig : InputFile
    {
        public long id { get; set; }
        public int parts { get; set; }
        public string name { get; set; }
    }

    [Id(767652808)]
    public class inputEncryptedFileBigUploaded : InputEncryptedFile
    {
        public long id { get; set; }
        public int parts { get; set; }
        public int key_fingerprint { get; set; }
    }

    [Id(974056226)]
    public class updateChatParticipantAdd : Update
    {
        public int chat_id { get; set; }
        public int user_id { get; set; }
        public int inviter_id { get; set; }
        public int version { get; set; }
    }

    [Id(1851755554)]
    public class updateChatParticipantDelete : Update
    {
        public int chat_id { get; set; }
        public int user_id { get; set; }
        public int version { get; set; }
    }

    [Id(-1906403213)]
    public class updateDcOptions : Update
    {
        public Vector<DcOption> dc_options { get; set; }
    }

    [Id(1638323254)]
    public class inputMediaUploadedAudio : InputMedia
    {
        public InputFile file { get; set; }
        public int duration { get; set; }
    }

    [Id(-1986820223)]
    public class inputMediaAudio : InputMedia
    {
        public InputAudio id { get; set; }
    }

    [Id(887592125)]
    public class inputMediaUploadedDocument : InputMedia
    {
        public InputFile file { get; set; }
        public string file_name { get; set; }
        public string mime_type { get; set; }
    }

    [Id(1044831837)]
    public class inputMediaUploadedThumbDocument : InputMedia
    {
        public InputFile file { get; set; }
        public InputFile thumb { get; set; }
        public string file_name { get; set; }
        public string mime_type { get; set; }
    }

    [Id(-779818943)]
    public class inputMediaDocument : InputMedia
    {
        public InputDocument id { get; set; }
    }

    [Id(802824708)]
    public class messageMediaDocument : MessageMedia
    {
        public Document document { get; set; }
    }

    [Id(-961117440)]
    public class messageMediaAudio : MessageMedia
    {
        public Audio audio { get; set; }
    }

    [Id(-648356732)]
    public class inputAudioEmpty : InputAudio
    {

    }

    [Id(2010398975)]
    public class inputAudio : InputAudio
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(1928391342)]
    public class inputDocumentEmpty : InputDocument
    {

    }

    [Id(410618194)]
    public class inputDocument : InputDocument
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(1960591437)]
    public class inputAudioFileLocation : InputFileLocation
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(1313188841)]
    public class inputDocumentFileLocation : InputFileLocation
    {
        public long id { get; set; }
        public long access_hash { get; set; }
    }

    [Id(-1332395189)]
    public class decryptedMessageMediaDocument : DecryptedMessageMedia
    {
        public bytes thumb { get; set; }
        public int thumb_w { get; set; }
        public int thumb_h { get; set; }
        public string file_name { get; set; }
        public string mime_type { get; set; }
        public int size { get; set; }
        public bytes key { get; set; }
        public bytes iv { get; set; }
    }

    [Id(1619031439)]
    public class decryptedMessageMediaAudio : DecryptedMessageMedia
    {
        public int duration { get; set; }
        public int size { get; set; }
        public bytes key { get; set; }
        public bytes iv { get; set; }
    }

    [Id(1483311320)]
    public class audioEmpty : Audio
    {
        public long id { get; set; }
    }

    [Id(1114908135)]
    public class audio : Audio
    {
        public long id { get; set; }
        public long access_hash { get; set; }
        public int user_id { get; set; }
        public int date { get; set; }
        public int duration { get; set; }
        public int size { get; set; }
        public int dc_id { get; set; }
    }

    [Id(922273905)]
    public class documentEmpty : Document
    {
        public long id { get; set; }
    }

    [Id(-1627626714)]
    public class document : Document
    {
        public long id { get; set; }
        public long access_hash { get; set; }
        public int user_id { get; set; }
        public int date { get; set; }
        public string file_name { get; set; }
        public string mime_type { get; set; }
        public int size { get; set; }
        public PhotoSize thumb { get; set; }
        public int dc_id { get; set; }
    }

    [Id(-878758099)]
    public class invokeAfterMsg : X
    {
        public long msg_id { get; set; }
        public NotX query { get; set; }
    }

    [Id(1036301552)]
    public class invokeAfterMsgs : X
    {
        public Vector<long> msg_ids { get; set; }
        public NotX query { get; set; }
    }

    [Id(1401115413)]
    public class invokeWithLayer1 : X
    {
        public NotX query { get; set; }
    }

    [Id(1877286395)]
    public class auth__checkPhone : auth__CheckedPhone
    {
        public string phone_number { get; set; }
    }

    [Id(1988976461)]
    public class auth__sendCode : auth__SentCode
    {
        public string phone_number { get; set; }
        public int sms_type { get; set; }
        public int api_id { get; set; }
        public string api_hash { get; set; }
        public string lang_code { get; set; }
    }

    [Id(63247716)]
    public class auth__sendCall : Bool
    {
        public string phone_number { get; set; }
        public string phone_code_hash { get; set; }
    }

    [Id(453408308)]
    public class auth__signUp : auth__Authorization
    {
        public string phone_number { get; set; }
        public string phone_code_hash { get; set; }
        public string phone_code { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
    }

    [Id(-1126886015)]
    public class auth__signIn : auth__Authorization
    {
        public string phone_number { get; set; }
        public string phone_code_hash { get; set; }
        public string phone_code { get; set; }
    }

    [Id(1461180992)]
    public class auth__logOut : Bool
    {

    }

    [Id(-1616179942)]
    public class auth__resetAuthorizations : Bool
    {

    }

    [Id(1998331287)]
    public class auth__sendInvites : Bool
    {
        public Vector<string> phone_numbers { get; set; }
        public string message { get; set; }
    }

    [Id(-440401971)]
    public class auth__exportAuthorization : auth__ExportedAuthorization
    {
        public int dc_id { get; set; }
    }

    [Id(-470837741)]
    public class auth__importAuthorization : auth__Authorization
    {
        public int id { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(1147957548)]
    public class account__registerDevice : Bool
    {
        public int token_type { get; set; }
        public string token { get; set; }
        public string device_model { get; set; }
        public string system_version { get; set; }
        public string app_version { get; set; }
        public Bool app_sandbox { get; set; }
        public string lang_code { get; set; }
    }

    [Id(1707432768)]
    public class account__unregisterDevice : Bool
    {
        public int token_type { get; set; }
        public string token { get; set; }
    }

    [Id(-2067899501)]
    public class account__updateNotifySettings : Bool
    {
        public InputNotifyPeer peer { get; set; }
        public InputPeerNotifySettings settings { get; set; }
    }

    [Id(313765169)]
    public class account__getNotifySettings : PeerNotifySettings
    {
        public InputNotifyPeer peer { get; set; }
    }

    [Id(-612493497)]
    public class account__resetNotifySettings : Bool
    {

    }

    [Id(-259486360)]
    public class account__updateProfile : User
    {
        public string first_name { get; set; }
        public string last_name { get; set; }
    }

    [Id(1713919532)]
    public class account__updateStatus : Bool
    {
        public Bool offline { get; set; }
    }

    [Id(-1068696894)]
    public class account__getWallPapers : Vector<WallPaper>
    {

    }

    [Id(227648840)]
    public class users__getUsers : Vector<User>
    {
        public Vector<InputUser> id { get; set; }
    }

    [Id(-902781519)]
    public class users__getFullUser : UserFull
    {
        public InputUser id { get; set; }
    }

    [Id(-995929106)]
    public class contacts__getStatuses : Vector<ContactStatus>
    {

    }

    [Id(583445000)]
    public class contacts__getContacts : contacts__Contacts
    {
        public string hash { get; set; }
    }

    [Id(-634342611)]
    public class contacts__importContacts : contacts__ImportedContacts
    {
        public Vector<InputContact> contacts { get; set; }
        public Bool replace { get; set; }
    }

    [Id(301470424)]
    public class contacts__search : contacts__Found
    {
        public string q { get; set; }
        public int limit { get; set; }
    }

    [Id(-847825880)]
    public class contacts__getSuggested : contacts__Suggested
    {
        public int limit { get; set; }
    }

    [Id(-1902823612)]
    public class contacts__deleteContact : contacts__Link
    {
        public InputUser id { get; set; }
    }

    [Id(1504393374)]
    public class contacts__deleteContacts : Bool
    {
        public Vector<InputUser> id { get; set; }
    }

    [Id(858475004)]
    public class contacts__block : Bool
    {
        public InputUser id { get; set; }
    }

    [Id(-448724803)]
    public class contacts__unblock : Bool
    {
        public InputUser id { get; set; }
    }

    [Id(-176409329)]
    public class contacts__getBlocked : contacts__Blocked
    {
        public int offset { get; set; }
        public int limit { get; set; }
    }

    [Id(1109588596)]
    public class messages__getMessages : messages__Messages
    {
        public Vector<int> id { get; set; }
    }

    [Id(-321970698)]
    public class messages__getDialogs : messages__Dialogs
    {
        public int offset { get; set; }
        public int max_id { get; set; }
        public int limit { get; set; }
    }

    [Id(-1834885329)]
    public class messages__getHistory : messages__Messages
    {
        public InputPeer peer { get; set; }
        public int offset { get; set; }
        public int max_id { get; set; }
        public int limit { get; set; }
    }

    [Id(132772523)]
    public class messages__search : messages__Messages
    {
        public InputPeer peer { get; set; }
        public string q { get; set; }
        public MessagesFilter filter { get; set; }
        public int min_date { get; set; }
        public int max_date { get; set; }
        public int offset { get; set; }
        public int max_id { get; set; }
        public int limit { get; set; }
    }

    [Id(-1336990448)]
    public class messages__readHistory : messages__AffectedHistory
    {
        public InputPeer peer { get; set; }
        public int max_id { get; set; }
        public int offset { get; set; }
    }

    [Id(-185009311)]
    public class messages__deleteHistory : messages__AffectedHistory
    {
        public InputPeer peer { get; set; }
        public int offset { get; set; }
    }

    [Id(351460618)]
    public class messages__deleteMessages : Vector<int>
    {
        public Vector<int> id { get; set; }
    }

    [Id(962567550)]
    public class messages__restoreMessages : Vector<int>
    {
        public Vector<int> id { get; set; }
    }

    [Id(682347368)]
    public class messages__receivedMessages : Vector<int>
    {
        public int max_id { get; set; }
    }

    [Id(1905801705)]
    public class messages__setTyping : Bool
    {
        public InputPeer peer { get; set; }
        public Bool typing { get; set; }
    }

    [Id(1289620139)]
    public class messages__sendMessage : messages__SentMessage
    {
        public InputPeer peer { get; set; }
        public string message { get; set; }
        public long random_id { get; set; }
    }

    [Id(-1547149962)]
    public class messages__sendMedia : messages__StatedMessage
    {
        public InputPeer peer { get; set; }
        public InputMedia media { get; set; }
        public long random_id { get; set; }
    }

    [Id(1363988751)]
    public class messages__forwardMessages : messages__StatedMessages
    {
        public InputPeer peer { get; set; }
        public Vector<int> id { get; set; }
    }

    [Id(1013621127)]
    public class messages__getChats : messages__Chats
    {
        public Vector<int> id { get; set; }
    }

    [Id(998448230)]
    public class messages__getFullChat : messages__ChatFull
    {
        public int chat_id { get; set; }
    }

    [Id(-1262720843)]
    public class messages__editChatTitle : messages__StatedMessage
    {
        public int chat_id { get; set; }
        public string title { get; set; }
    }

    [Id(-662601187)]
    public class messages__editChatPhoto : messages__StatedMessage
    {
        public int chat_id { get; set; }
        public InputChatPhoto photo { get; set; }
    }

    [Id(787082910)]
    public class messages__addChatUser : messages__StatedMessage
    {
        public int chat_id { get; set; }
        public InputUser user_id { get; set; }
        public int fwd_limit { get; set; }
    }

    [Id(-1010447069)]
    public class messages__deleteChatUser : messages__StatedMessage
    {
        public int chat_id { get; set; }
        public InputUser user_id { get; set; }
    }

    [Id(1100847854)]
    public class messages__createChat : messages__StatedMessage
    {
        public Vector<InputUser> users { get; set; }
        public string title { get; set; }
    }

    [Id(-304838614)]
    public class updates__getState : updates__State
    {

    }

    [Id(168039573)]
    public class updates__getDifference : updates__Difference
    {
        public int pts { get; set; }
        public int date { get; set; }
        public int qts { get; set; }
    }

    [Id(-285902432)]
    public class photos__updateProfilePhoto : UserProfilePhoto
    {
        public InputPhoto id { get; set; }
        public InputPhotoCrop crop { get; set; }
    }

    [Id(-720397176)]
    public class photos__uploadProfilePhoto : photos__Photo
    {
        public InputFile file { get; set; }
        public string caption { get; set; }
        public InputGeoPoint geo_point { get; set; }
        public InputPhotoCrop crop { get; set; }
    }

    [Id(-1291540959)]
    public class upload__saveFilePart : Bool
    {
        public long file_id { get; set; }
        public int file_part { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(-475607115)]
    public class upload__getFile : upload__File
    {
        public InputFileLocation location { get; set; }
        public int offset { get; set; }
        public int limit { get; set; }
    }

    [Id(-990308245)]
    public class help__getConfig : Config
    {

    }

    [Id(531836966)]
    public class help__getNearestDc : NearestDc
    {

    }

    [Id(-938300290)]
    public class help__getAppUpdate : help__AppUpdate
    {
        public string device_model { get; set; }
        public string system_version { get; set; }
        public string app_version { get; set; }
        public string lang_code { get; set; }
    }

    [Id(1862465352)]
    public class help__saveAppLog : Bool
    {
        public Vector<InputAppEvent> events { get; set; }
    }

    [Id(-1532407418)]
    public class help__getInviteText : help__InviteText
    {
        public string lang_code { get; set; }
    }

    [Id(-1209117380)]
    public class photos__getUserPhotos : photos__Photos
    {
        public InputUser user_id { get; set; }
        public int offset { get; set; }
        public int max_id { get; set; }
        public int limit { get; set; }
    }

    [Id(681431542)]
    public class invokeWithLayer2 : X
    {
        public NotX query { get; set; }
    }

    [Id(66319602)]
    public class messages__forwardMessage : messages__StatedMessage
    {
        public InputPeer peer { get; set; }
        public int id { get; set; }
        public long random_id { get; set; }
    }

    [Id(1102776690)]
    public class messages__sendBroadcast : messages__StatedMessages
    {
        public Vector<InputUser> contacts { get; set; }
        public string message { get; set; }
        public InputMedia media { get; set; }
    }

    [Id(-1220062616)]
    public class invokeWithLayer3 : X
    {
        public NotX query { get; set; }
    }

    [Id(2132356495)]
    public class geochats__getLocated : geochats__Located
    {
        public InputGeoPoint geo_point { get; set; }
        public int radius { get; set; }
        public int limit { get; set; }
    }

    [Id(-515735953)]
    public class geochats__getRecents : geochats__Messages
    {
        public int offset { get; set; }
        public int limit { get; set; }
    }

    [Id(1437853947)]
    public class geochats__checkin : geochats__StatedMessage
    {
        public InputGeoChat peer { get; set; }
    }

    [Id(1730338159)]
    public class geochats__getFullChat : messages__ChatFull
    {
        public InputGeoChat peer { get; set; }
    }

    [Id(1284383347)]
    public class geochats__editChatTitle : geochats__StatedMessage
    {
        public InputGeoChat peer { get; set; }
        public string title { get; set; }
        public string address { get; set; }
    }

    [Id(903355029)]
    public class geochats__editChatPhoto : geochats__StatedMessage
    {
        public InputGeoChat peer { get; set; }
        public InputChatPhoto photo { get; set; }
    }

    [Id(-808598451)]
    public class geochats__search : geochats__Messages
    {
        public InputGeoChat peer { get; set; }
        public string q { get; set; }
        public MessagesFilter filter { get; set; }
        public int min_date { get; set; }
        public int max_date { get; set; }
        public int offset { get; set; }
        public int max_id { get; set; }
        public int limit { get; set; }
    }

    [Id(-1254131096)]
    public class geochats__getHistory : geochats__Messages
    {
        public InputGeoChat peer { get; set; }
        public int offset { get; set; }
        public int max_id { get; set; }
        public int limit { get; set; }
    }

    [Id(146319145)]
    public class geochats__setTyping : Bool
    {
        public InputGeoChat peer { get; set; }
        public Bool typing { get; set; }
    }

    [Id(102432836)]
    public class geochats__sendMessage : geochats__StatedMessage
    {
        public InputGeoChat peer { get; set; }
        public string message { get; set; }
        public long random_id { get; set; }
    }

    [Id(-1192173825)]
    public class geochats__sendMedia : geochats__StatedMessage
    {
        public InputGeoChat peer { get; set; }
        public InputMedia media { get; set; }
        public long random_id { get; set; }
    }

    [Id(235482646)]
    public class geochats__createGeoChat : geochats__StatedMessage
    {
        public string title { get; set; }
        public InputGeoPoint geo_point { get; set; }
        public string address { get; set; }
        public string venue { get; set; }
    }

    [Id(-559885264)]
    public class invokeWithLayer4 : X
    {
        public NotX query { get; set; }
    }

    [Id(1098536878)]
    public class invokeWithLayer5 : X
    {
        public NotX query { get; set; }
    }

    [Id(979686733)]
    public class invokeWithLayer6 : X
    {
        public NotX query { get; set; }
    }

    [Id(-1514252589)]
    public class invokeWithLayer7 : X
    {
        public NotX query { get; set; }
    }

    [Id(651135312)]
    public class messages__getDhConfig : messages__DhConfig
    {
        public int version { get; set; }
        public int random_length { get; set; }
    }

    [Id(-162681021)]
    public class messages__requestEncryption : EncryptedChat
    {
        public InputUser user_id { get; set; }
        public int random_id { get; set; }
        public bytes g_a { get; set; }
    }

    [Id(1035731989)]
    public class messages__acceptEncryption : EncryptedChat
    {
        public InputEncryptedChat peer { get; set; }
        public bytes g_b { get; set; }
        public long key_fingerprint { get; set; }
    }

    [Id(-304536635)]
    public class messages__discardEncryption : Bool
    {
        public int chat_id { get; set; }
    }

    [Id(2031374829)]
    public class messages__setEncryptedTyping : Bool
    {
        public InputEncryptedChat peer { get; set; }
        public Bool typing { get; set; }
    }

    [Id(2135648522)]
    public class messages__readEncryptedHistory : Bool
    {
        public InputEncryptedChat peer { get; set; }
        public int max_date { get; set; }
    }

    [Id(-1451792525)]
    public class messages__sendEncrypted : messages__SentEncryptedMessage
    {
        public InputEncryptedChat peer { get; set; }
        public long random_id { get; set; }
        public bytes data { get; set; }
    }

    [Id(-1701831834)]
    public class messages__sendEncryptedFile : messages__SentEncryptedMessage
    {
        public InputEncryptedChat peer { get; set; }
        public long random_id { get; set; }
        public bytes data { get; set; }
        public InputEncryptedFile file { get; set; }
    }

    [Id(852769188)]
    public class messages__sendEncryptedService : messages__SentEncryptedMessage
    {
        public InputEncryptedChat peer { get; set; }
        public long random_id { get; set; }
        public bytes data { get; set; }
    }

    [Id(1436924774)]
    public class messages__receivedQueue : Vector<long>
    {
        public int max_qts { get; set; }
    }

    [Id(-374613507)]
    public class invokeWithLayer8 : X
    {
        public NotX query { get; set; }
    }

    [Id(-562337987)]
    public class upload__saveBigFilePart : Bool
    {
        public long file_id { get; set; }
        public int file_part { get; set; }
        public int file_total_parts { get; set; }
        public bytes bytes { get; set; }
    }

    [Id(1769565673)]
    public class initConnection : X
    {
        public int api_id { get; set; }
        public string device_model { get; set; }
        public string system_version { get; set; }
        public string app_version { get; set; }
        public string lang_code { get; set; }
        public NotX query { get; set; }
    }

    [Id(1987140195)]
    public class invokeWithLayer9 : X
    {
        public NotX query { get; set; }
    }

    [Id(962726977)]
    public class invokeWithLayer10 : X
    {
        public NotX query { get; set; }
    }

    [Id(-1497853985)]
    public class invokeWithLayer11 : X
    {
        public NotX query { get; set; }
    }
}